package com.gy.edu.examination.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.gy.edu.R;

/**
 * Created by 高岳 on 2016/12/24.
 * Describe:
 */
public class ExaminationReportAdapter extends BaseAdapter {

    private Context context;

    public ExaminationReportAdapter(Context context){
        this.context = context;
    }

    @Override
    public int getCount() {
        return 6;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        convertView = View.inflate(context, R.layout.adapter_examination_report,null);
        TextView tvEnd = (TextView) convertView.findViewById(R.id.report_tv_title);
        switch (position){
            case 0:
                tvEnd.setText("微课现状调研_8月");
                break;
            case 1:
                tvEnd.setText("对微课现状的调查研究");
                break;
            case 2:
                tvEnd.setText("微课现状调研");
                break;
            case 3:
                tvEnd.setText("微课调研");
                break;
            case 4:
                tvEnd.setText("你对微课程的认识");
                break;
            case 5:
                tvEnd.setText("三叶草评测");
                break;
        }
        return convertView;
    }
}
